package com.yeung.exam;

import java.util.Scanner;

public class 移动_去掉字符 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        System.out.println(line.replaceAll("aog", ""));

    }
}
